<template>
  <div class="homeHeader">
    <div class="iconfont iconnew"></div>
    <div class="search" @click="$router.push('/search')">
      <span class="iconfont iconsearch"></span>搜索新闻
    </div>
    <div class="iconfont iconwode" @click="$router.push('/personal')"></div>
  </div>
</template>

<script>
export default {};
</script>

<style lang="less">
.homeHeader {
  background-color: rosybrown;
  display: flex;
  height: 50/360 * 100vw;
  align-items: center;
  padding: 0 16/360 * 100vw;
  color: #fff;
  .iconnew {
    font-size: 54/360 * 100vw;
  }
  .search {
    flex: 1;
    text-align: center;
    margin-right: 30/360 * 100vw;
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.4);
    height: 36/360 * 100vw;
    line-height: 36/360 * 100vw;
    border-radius: 17/360 * 100vw;
    .iconsearch {
      margin: 0 6/360 * 100vw;
    }
  }
  .iconwode {
    font-size: 30/360 * 100vw;
    opacity: 0.6;
  }
}
</style>